const initialState = {
  channels: [],
  page: 1,
  pageSize: 10,
  list: [],
  count: 0,
  article: {},
}
const article = (state = initialState, action) => {
  switch (action.type) {
    case 'article/Info':
      return {
        ...state,
        channels: action.payload,
      }
    case 'article/list':
      return { ...state, ...action.payload }
    case 'article/getArticle':
      return { ...state, article: action.payload }
    default:
      return state
  }
}
export default article
